package HTTPServer;

import HTTPServer.Server.*;

public class WebServer {

    public static void main(String[] args) {
        int port = 8080;

        if (args.length == 1) {
            port = Integer.parseInt(args[0]);
        } else {
            System.out.println("Usage: java HTTPServer <port>");
            System.out.println("Using port " + port + "\n");
        }

        HTTPServerStrategy server = new ConcreteHTTPServer(port);
        server.start();
    }
}
